package test2;

import java.util.HashMap;

public class DemoStream {
    public static void main(String[] args) {
        HashMap<String,String> hm=new HashMap<>();
        hm.put("aaa","bbb");
        hm.put("ccc","dddd");
        hm.put("ccc","dddd");
        hm.put("aaeeeea","bbbd");
        hm.put("aaeeeea","bbbd");
        hm.entrySet().stream().forEach(s->{System.out.println(s.getKey()+"=============="+s.getValue());});


    }
}
